package com.utils;

public class Result {
	private boolean success;
	private String message;
	
	public static Result SUCCESS = new Result();
	public static Result FAILURE(String message) {
		return new Result(message);
	}

	public Result() {
		super();
		this.success = true;
	}

	public Result(String message) {
		super();
		this.success = false;
		this.message = message;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
